//
//  ARMedia.m
//  AriseSamePro
//
//  Created by 包日守 on 15/10/24.
//  Copyright © 2015年 Arise. All rights reserved.
//

#import "ARMedia.h"

@implementation ARMedia

- (id) init
{
    self = [super init];
    if (self) {
        self.channelModel = [[ARChannelModel alloc] init];
        self.soundModel = [[ARSound alloc] init];
        self.stickerModel = [[ARSticker alloc] init];
        self.musicModel = [[ARMusic alloc] init];
        self.movieModel = [[ARMovie alloc] init];
        self.voteModel = [[ARVote alloc] init];
        self.productModel = [[ARProduct alloc] init];
    }
    return self;
}

- (void) setValue:(id)value forUndefinedKey:(NSString *)key
{}

- (void) setValuesForKeysWithDictionary:(NSDictionary<NSString *,id> *)keyedValues
{
    [super setValuesForKeysWithDictionary:keyedValues];
    
    [self.channelModel setValuesForKeysWithDictionary:keyedValues[@"channel"]];
    
    [self.soundModel setValuesForKeysWithDictionary:keyedValues[@"sound"]];
    [self.stickerModel setValuesForKeysWithDictionary:keyedValues[@"sticker"]];
    
    [self.musicModel setValuesForKeysWithDictionary:keyedValues[@"music"]];
    [self.movieModel setValuesForKeysWithDictionary:keyedValues[@"movie"]];
    [self.voteModel setValuesForKeysWithDictionary:keyedValues[@"vote"]];
    [self.productModel setValuesForKeysWithDictionary:keyedValues[@"product"]];
}
@end
